﻿<%@ Page Language="C#" MasterPageFile="~/Adminstrator/Admin.master" AutoEventWireup="true"
    CodeBehind="QLDoiTuongTrong.aspx.cs" Inherits="VietGap_DV.Adminstrator.QLDoiTuongTrong"
    Title="Quản lý đối tượng trồng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-content-fix">
        <h3>
            Danh sách đối tượng trồng</h3>
        <table style="width: 100%; margin-top: 20px; height: auto;">
            <tbody>
                <tr>
                    <td width="100%">
                        <span id="ctl00_ctMain_ctl00_lblThongbao" style="color: Red;"></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tìm kiếm&nbsp; :&nbsp;
                        <input name="ctl00$ctMain$ctl00$txtSearchByID" type="text" id="ctl00_ctMain_ctl00_txtSearchByID"
                            style="width: 234px;" class="text">
                        &nbsp;&nbsp;<span id="ctl00_ctMain_ctl00_Label1">ID:</span><input name="ctl00$ctMain$ctl00$txtID"
                            type="text" id="ctl00_ctMain_ctl00_txtID" style="width: 50px;" class="text">
                        <a id="ctl00_ctMain_ctl00_btnSearchByID" href="javascript:__doPostBack('ctl00$ctMain$ctl00$btnSearchByID','')">
                            Tìm kiếm</a>| <a id="ctl00_ctMain_ctl00_btnShowAll" href="javascript:__doPostBack('ctl00$ctMain$ctl00$btnShowAll','')">
                                Hiện toàn bộ</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>
                            <table class="Grid" cellspacing="0" rules="all" border="1" id="ctl00_ctMain_ctl00_grvDoituongnuoi"
                                style="border-collapse: collapse;">
                                <tbody>
                                    <tr class="GridHeader">
                                        <th scope="col" style="width: 25px;">
                                            <input type="checkbox" style="width: 20px;" id="chkAll" onclick="javascript:checkAll(this,'grvDoituongnuoi','chkDelete');">
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Sort$PK_iDoituongnuoiID')">
                                                ID</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Sort$sTendoituong')">
                                                Tên</a>
                                        </th>
                                        <th scope="col">
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Sort$sKytu')">
                                                Ký tự</a>
                                        </th>
                                        <th scope="col">
                                            Sửa
                                        </th>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl02_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl02$chkDelete">
                                        </td>
                                        <td>
                                            7
                                        </td>
                                        <td>
                                            Các loại khác
                                        </td>
                                        <td>
                                            006
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$0')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr class="GridAltItem">
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl03_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl03$chkDelete">
                                        </td>
                                        <td>
                                            8
                                        </td>
                                        <td>
                                            Củ
                                        </td>
                                        <td>
                                            007
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$1')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl04_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl04$chkDelete">
                                        </td>
                                        <td>
                                            4
                                        </td>
                                        <td>
                                            Chè
                                        </td>
                                        <td>
                                            004
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$2')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr class="GridAltItem">
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl05_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl05$chkDelete">
                                        </td>
                                        <td>
                                            3
                                        </td>
                                        <td>
                                            Gạo
                                        </td>
                                        <td>
                                            003
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$3')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl06_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl06$chkDelete">
                                        </td>
                                        <td>
                                            9
                                        </td>
                                        <td>
                                            Hoa màu
                                        </td>
                                        <td>
                                            Cam
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$4')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr class="GridAltItem">
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl07_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl07$chkDelete">
                                        </td>
                                        <td>
                                            2
                                        </td>
                                        <td>
                                            Lúa
                                        </td>
                                        <td>
                                            002
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$5')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl08_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl08$chkDelete">
                                        </td>
                                        <td>
                                            6
                                        </td>
                                        <td>
                                            Quả
                                        </td>
                                        <td>
                                            005
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$6')">Sửa</a>
                                        </td>
                                    </tr>
                                    <tr class="GridAltItem">
                                        <td>
                                            <input id="ctl00_ctMain_ctl00_grvDoituongnuoi_ctl09_chkDelete" type="checkbox" name="ctl00$ctMain$ctl00$grvDoituongnuoi$ctl09$chkDelete">
                                        </td>
                                        <td>
                                            1
                                        </td>
                                        <td>
                                            Rau
                                        </td>
                                        <td>
                                            001
                                        </td>
                                        <td>
                                            <a href="javascript:__doPostBack('ctl00$ctMain$ctl00$grvDoituongnuoi','Select$7')">Sửa</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a id="ctl00_ctMain_ctl00_lbtnAdd" href="javascript:__doPostBack('ctl00$ctMain$ctl00$lbtnAdd','')">
                            Thêm mới | </a><a onclick="return confirm('Chắc chắn xóa?');" id="ctl00_ctMain_ctl00_lbtnDelete"
                                href="javascript:__doPostBack('ctl00$ctMain$ctl00$lbtnDelete','')">Xóa đã chọn</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div>
    <div class="m">
    <h3>Thêm đối tượng trồng</h3>
        <fieldset>
            <legend>Thông tin đối tượng trồng</legend>
            <div class="a">
                <div class="l">
                    <span id="ctl00_ctMain_ctl00_lblDoituongnuoi">Tên</span></div>
                <div class="r">
                    <input name="ctl00$ctMain$ctl00$txtTen" type="text" id="ctl00_ctMain_ctl00_txtTen" class="txtbox text">
                </div>
                <div class="rr">
                   <span id="ctl00_ctMain_ctl00_RequiredFieldValidator1" style="color:Red;margin̉-left:10px;display:none;">Không được để trống!</span>
                </div>
            </div>
           <div class="a">
                <div class="l">
                    <span id="ctl00_ctMain_ctl00_lblKytu">Ký tự</span></div>
                <div class="r">
                    <input name="ctl00$ctMain$ctl00$txtKytu" type="text" id="ctl00_ctMain_ctl00_txtKytu" class="txtbox text">
                </div>
                <div class="rr">
                   <span id="ctl00_ctMain_ctl00_RequiredFieldValidator2" style="color:Red;margin̉-left:10px;display:none;">Không được để trống!</span>
                </div>
            </div>
             <div class="a">
                <div class="l">
                  </div>
                <div class="r">
                    <input type="submit" name="ctl00$ctMain$ctl00$btnOK" value="Thêm" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ctMain$ctl00$btnOK&quot;, &quot;&quot;, true, &quot;adding&quot;, &quot;&quot;, false, false))" id="ctl00_ctMain_ctl00_btnOK" class="button" style="width:90px;">       
        <input type="submit" name="ctl00$ctMain$ctl00$btnCancel" value="Huỷ" id="ctl00_ctMain_ctl00_btnCancel" class="button" style="width:90px;">
                </div>
                <div class="rr">
                  
                </div>
            </div>
            <div class="a">
            </div>
        </fieldset>
    </div>
    </div>
</asp:Content>
